AddCSLuaFile("autorun/client/e_rating_client.lua")
local erating_sp = 1 //For testing in singleplayer
if !SinglePlayer() || erating_sp then

	MsgAll("E_ratings ##Initializing serverside E_Ratings##")
	
	for k,v in pairs(player.GetAll()) do
		v:ConCommand("disconnect")
	end 
else
	MsgAll("E_ratings ##Script not run in singleplayer!##") //Unless erating_sp is set to 1
end 

function PlayerTracking() //Does cool stuff to players.
	for k, v in pairs(player.GetAll()) do
		if v:IsAdmin() or v:IsSuperAdmin() or v:IsListenServerHost then
			v:EquipSuit()
			v:SetArmor( 100 )
			v:SetColor( 155, 155, 155, 255) //Admins, Superadmins and listen hosts are gray
		end
	end
end

//Function below is untested
//function BanProps()
//	if not file.Exists("../cfg/e_ratings") && not file.IsDir("../cfg/e_ratings") then
//		file.CreateDir("../cfg/e_ratings")
//	end
//	if not file.Exists("../cfg/e_ratings/banned_props.txt") then
//		file.Write("../cfg/e_ratings/banned_props.txt", "models/props_animated_breakable/Smokestack.mdl")
//	end
//	local bprops = {}
//	bprops = ents.FindByModel(file.Read("../cfg/e_ratings/banned_props.txt") )
//	bprops:Remove()
//end 